
func void b_enter_secretisland_kapitel_1()
{
};


var int entersecretisland_kapitel2;

func void b_enter_secretisland_kapitel_2()
{
	if(ENTERSECRETISLAND_KAPITEL2 == FALSE)
	{
		ENTERSECRETISLAND_KAPITEL2 = TRUE;
	};
};


var int entersecretisland_kapitel3;

func void b_enter_secretisland_kapitel_3()
{
	if(ENTERSECRETISLAND_KAPITEL3 == FALSE)
	{
		ENTERSECRETISLAND_KAPITEL3 = TRUE;
	};
};


var int entersecretisland_kapitel4;

func void b_enter_secretisland_kapitel_4()
{
	if(ENTERSECRETISLAND_KAPITEL4 == FALSE)
	{
		ENTERSECRETISLAND_KAPITEL4 = TRUE;
	};
};


var int entersecretisland_kapitel5;

func void b_enter_secretisland_kapitel_5()
{
	if(ENTERSECRETISLAND_KAPITEL5 == FALSE)
	{
		Wld_InsertNpc(Molerat,"FP_ROAM_INSEL_MOLERAT_01");
		Wld_InsertNpc(Molerat,"FP_ROAM_INSEL_MOLERAT_02");
		Wld_InsertNpc(Molerat,"FP_ROAM_INSEL_MOLERAT_06");
		Wld_InsertNpc(Molerat,"FP_ROAM_INSEL_MOLERAT_07");
		Wld_InsertNpc(wolf3,"FP_ROAM_INSEL_ORKS_1000");
		Wld_InsertNpc(bloodfly2,"INSEL_ORKS_10");
		Wld_InsertNpc(wolf3,"INSEL_NATUR_83");
		Wld_InsertNpc(wolf3,"INSEL_NATUR_83");
		Wld_InsertNpc(wolf3,"INSEL_NATUR_83");
		Wld_InsertNpc(wolf3,"INSEL_NATUR_83");
		Wld_InsertNpc(bloodfly2,"INSEL_NATUR_85");
		Wld_InsertNpc(bloodfly2,"INSEL_NATUR_85");
		Wld_InsertNpc(bloodfly2,"INSEL_NATUR_1000");
		Wld_InsertNpc(bloodfly2,"INSEL_NATUR_1000");
		Wld_InsertNpc(Molerat,"INSEL_NATUR_103");
		Wld_InsertNpc(Molerat,"INSEL_NATUR_104");
		Wld_InsertNpc(Molerat,"INSEL_DORF_531");
		Wld_InsertNpc(Swamprat,"FP_INSEL_ROAM_TIERE_19");
		Wld_InsertNpc(Scavenger,"FP_INSELROAM_TIERE_16");
		Wld_InsertNpc(Scavenger,"FP_INSEL_ROAM_TIERE_17");
		Wld_InsertNpc(Scavenger,"FP_INSEL_ROAM_TIERE_18");
		Wld_InsertNpc(Scavenger,"FP_INSEL_ROAM_TIERE_07");
		Wld_InsertNpc(Scavenger,"FP_INSEL_ROAM_TIERE_08");
		Wld_InsertNpc(Scavenger,"FP_INSEL_ROAM_TIERE_05");
		Wld_InsertNpc(Scavenger,"FP_INSEL_ROAM_TIERE_06");
		Wld_InsertNpc(gobbo_mage,"FP_INSEL_ROAM_TIERE_100");
		Wld_InsertNpc(gobbo_mage,"FP_INSEL_ROAM_TIERE_101");
		Wld_InsertNpc(gobbo_mage,"FP_INSEL_ROAM_TIERE_102");
		Wld_InsertNpc(keiler3,"FP_ROAM _INSEL_TIERE_42");
		Wld_InsertNpc(keiler3,"FP_ROAM _INSEL_TIERE_41");
		Wld_InsertNpc(keiler3,"FP_INSEL_ROAM_TIERE_45");
		Wld_InsertNpc(keiler3,"FP_INSEL_ROAM_TIERE_47");
		Wld_InsertNpc(Scavenger,"FP_INSEL_ROAM_TIERE_48");
		Wld_InsertNpc(Scavenger,"FP_INSEL_ROAM_TIERE_49");
		Wld_InsertNpc(Scavenger,"FP_INSEL_ROAM_TIERE_50");
		Wld_InsertNpc(Scavenger,"FP_INSEL_ROAM_TIERE_90");
		Wld_InsertNpc(Scavenger,"FP_INSEL_ROAM_TIERE_91");
		Wld_InsertNpc(Scavenger,"FP_INSEL_ROAM_TIERE_92");
		Wld_InsertNpc(Scavenger,"FP_INSEL_ROAM_TIERE_93");
		Wld_InsertNpc(gobbo_mage,"FP_INSEL_ROAM_TIERE_94");
		Wld_InsertNpc(gobbo_mage,"FP_INSEL_ROAM_TIERE_95");
		Wld_InsertNpc(gobbo_mage,"FP_INSEL_ROAM_TIERE_96");
		Wld_InsertNpc(gobbo_mage,"FP_INSEL_ROAM_TIERE_97");
		Wld_InsertNpc(bloodfly2,"FP_INSEL_ROAM_TIERE_52");
		Wld_InsertNpc(bloodfly2,"FP_INSEL_ROAM_TIERE_54");
		Wld_InsertNpc(Molerat,"FP_INSEL_ROAM_TIERE_54");
		Wld_InsertNpc(Molerat,"FP_INSEL_ROAM_TIERE_56");
		Wld_InsertNpc(bloodfly2,"INSEL_DORF_538");
		Wld_InsertNpc(wolf3,"INSEL_NATUR_47");
		Wld_InsertNpc(wolf3,"INSEL_NATUR_48");
		Wld_InsertNpc(wolf3,"INSEL_NATUR_62");
		Wld_InsertNpc(wolf3,"INSEL_DRAUSSEN_04");
		Wld_InsertNpc(gobbo_mage,"INSEL_NATUR_05");
		Wld_InsertNpc(gobbo_mage,"FP_SIT_STAND_CAMPFIRE_HOEHLE_01");
		Wld_InsertNpc(lurker4,"FP_ROAM_INSEL_LURKER_02");
		Wld_InsertNpc(lurker4,"FP_ROAM_INSEL_LURKER_04");
		Wld_InsertNpc(lurker4,"FP_ROAM_INSEL_LURKER_07");
		Wld_InsertNpc(lurker4,"FP_ROAM_INSEL_LURKER_10");
		Wld_InsertNpc(lurker4,"FP_ROAM_INSEL_LURKER_26");
		Wld_InsertNpc(lurker4,"FP_ROAM_INSEL_LURKER_18");
		Wld_InsertNpc(lurker4,"FP_ROAM_INSEL_LURKER_13");
		Wld_InsertNpc(lurker4,"INSEL_NATUR_124");
		Wld_InsertNpc(lurker4,"INSEL_NATUR_500");
		Wld_InsertNpc(lurker4,"INSEL_NATUR_21");
		Wld_InsertNpc(lurker4,"INSEL_NATUR_19");
		Wld_InsertNpc(waran3,"FP_INSEL_ROAM_TIERE_86");
		Wld_InsertNpc(waran3,"FP_INSEL_ROAM_TIERE_84");
		Wld_InsertNpc(waran3,"FP_INSEL_ROAM_TIERE_85");
		Wld_InsertNpc(waran3,"FP_INSEL_ROAM_TIERE_80");
		Wld_InsertNpc(waran3,"FP_INSEL_ROAM_TIERE_81");
		Wld_InsertNpc(waran3,"FP_ROAM_EMILIO_01");
		Wld_InsertNpc(Scavenger,"FP_INSEL_ROAM_TIERE_58");
		Wld_InsertNpc(Scavenger,"FP_INSEL_ROAM_TIERE_59");
		Wld_InsertNpc(Scavenger,"FP_INSEL_ROAM_TIERE_60");
		Wld_InsertNpc(gobbo_mage,"FP_INSEL_ROAM_TIERE_64");
		Wld_InsertNpc(gobbo_mage,"FP_INSEL_ROAM_TIERE_65");
		Wld_InsertNpc(wolf3,"FP_INSEL_ROAM_TIERE_76");
		Wld_InsertNpc(wolf3,"FP_INSEL_ROAM_TIERE_78");
		ENTERSECRETISLAND_KAPITEL5 = TRUE;
	};
};


var int entersecretisland_kapitel6;

func void b_enter_secretisland_kapitel_6()
{
	if(ENTERSECRETISLAND_KAPITEL6 == FALSE)
	{
		Wld_InsertNpc(Molerat,"FP_ROAM_INSEL_MOLERAT_01");
		Wld_InsertNpc(Molerat,"FP_ROAM_INSEL_MOLERAT_02");
		Wld_InsertNpc(Molerat,"FP_ROAM_INSEL_MOLERAT_06");
		Wld_InsertNpc(Molerat,"FP_ROAM_INSEL_MOLERAT_07");
		Wld_InsertNpc(wolf3,"FP_ROAM_INSEL_ORKS_1000");
		Wld_InsertNpc(bloodfly2,"INSEL_ORKS_10");
		Wld_InsertNpc(wolf3,"INSEL_NATUR_83");
		Wld_InsertNpc(wolf3,"INSEL_NATUR_83");
		Wld_InsertNpc(wolf3,"INSEL_NATUR_83");
		Wld_InsertNpc(wolf3,"INSEL_NATUR_83");
		Wld_InsertNpc(bloodfly2,"INSEL_NATUR_85");
		Wld_InsertNpc(bloodfly2,"INSEL_NATUR_85");
		Wld_InsertNpc(bloodfly2,"INSEL_NATUR_1000");
		Wld_InsertNpc(bloodfly2,"INSEL_NATUR_1000");
		Wld_InsertNpc(Molerat,"INSEL_NATUR_103");
		Wld_InsertNpc(Molerat,"INSEL_NATUR_104");
		Wld_InsertNpc(Molerat,"INSEL_DORF_531");
		Wld_InsertNpc(Swamprat,"FP_INSEL_ROAM_TIERE_19");
		Wld_InsertNpc(Scavenger,"FP_INSELROAM_TIERE_16");
		Wld_InsertNpc(Scavenger,"FP_INSEL_ROAM_TIERE_17");
		Wld_InsertNpc(Scavenger,"FP_INSEL_ROAM_TIERE_18");
		Wld_InsertNpc(Scavenger,"FP_INSEL_ROAM_TIERE_07");
		Wld_InsertNpc(Scavenger,"FP_INSEL_ROAM_TIERE_08");
		Wld_InsertNpc(Scavenger,"FP_INSEL_ROAM_TIERE_05");
		Wld_InsertNpc(Scavenger,"FP_INSEL_ROAM_TIERE_06");
		Wld_InsertNpc(gobbo_mage,"FP_INSEL_ROAM_TIERE_100");
		Wld_InsertNpc(gobbo_mage,"FP_INSEL_ROAM_TIERE_101");
		Wld_InsertNpc(gobbo_mage,"FP_INSEL_ROAM_TIERE_102");
		Wld_InsertNpc(keiler3,"FP_ROAM _INSEL_TIERE_42");
		Wld_InsertNpc(keiler3,"FP_ROAM _INSEL_TIERE_41");
		Wld_InsertNpc(keiler3,"FP_INSEL_ROAM_TIERE_45");
		Wld_InsertNpc(keiler3,"FP_INSEL_ROAM_TIERE_47");
		Wld_InsertNpc(Scavenger,"FP_INSEL_ROAM_TIERE_48");
		Wld_InsertNpc(Scavenger,"FP_INSEL_ROAM_TIERE_49");
		Wld_InsertNpc(Scavenger,"FP_INSEL_ROAM_TIERE_50");
		Wld_InsertNpc(Scavenger,"FP_INSEL_ROAM_TIERE_90");
		Wld_InsertNpc(Scavenger,"FP_INSEL_ROAM_TIERE_91");
		Wld_InsertNpc(Scavenger,"FP_INSEL_ROAM_TIERE_92");
		Wld_InsertNpc(Scavenger,"FP_INSEL_ROAM_TIERE_93");
		Wld_InsertNpc(gobbo_mage,"FP_INSEL_ROAM_TIERE_94");
		Wld_InsertNpc(gobbo_mage,"FP_INSEL_ROAM_TIERE_95");
		Wld_InsertNpc(gobbo_mage,"FP_INSEL_ROAM_TIERE_96");
		Wld_InsertNpc(gobbo_mage,"FP_INSEL_ROAM_TIERE_97");
		Wld_InsertNpc(bloodfly2,"FP_INSEL_ROAM_TIERE_52");
		Wld_InsertNpc(bloodfly2,"FP_INSEL_ROAM_TIERE_54");
		Wld_InsertNpc(Molerat,"FP_INSEL_ROAM_TIERE_54");
		Wld_InsertNpc(Molerat,"FP_INSEL_ROAM_TIERE_56");
		Wld_InsertNpc(bloodfly2,"INSEL_DORF_538");
		Wld_InsertNpc(wolf3,"INSEL_NATUR_47");
		Wld_InsertNpc(wolf3,"INSEL_NATUR_48");
		Wld_InsertNpc(wolf3,"INSEL_NATUR_62");
		Wld_InsertNpc(wolf3,"INSEL_DRAUSSEN_04");
		Wld_InsertNpc(gobbo_mage,"INSEL_NATUR_05");
		Wld_InsertNpc(gobbo_mage,"FP_SIT_STAND_CAMPFIRE_HOEHLE_01");
		Wld_InsertNpc(lurker4,"FP_ROAM_INSEL_LURKER_02");
		Wld_InsertNpc(lurker4,"FP_ROAM_INSEL_LURKER_04");
		Wld_InsertNpc(lurker4,"FP_ROAM_INSEL_LURKER_07");
		Wld_InsertNpc(lurker4,"FP_ROAM_INSEL_LURKER_10");
		Wld_InsertNpc(lurker4,"FP_ROAM_INSEL_LURKER_26");
		Wld_InsertNpc(lurker4,"FP_ROAM_INSEL_LURKER_18");
		Wld_InsertNpc(lurker4,"FP_ROAM_INSEL_LURKER_13");
		Wld_InsertNpc(lurker4,"INSEL_NATUR_124");
		Wld_InsertNpc(lurker4,"INSEL_NATUR_500");
		Wld_InsertNpc(lurker4,"INSEL_NATUR_21");
		Wld_InsertNpc(lurker4,"INSEL_NATUR_19");
		Wld_InsertNpc(waran3,"FP_INSEL_ROAM_TIERE_86");
		Wld_InsertNpc(waran3,"FP_INSEL_ROAM_TIERE_84");
		Wld_InsertNpc(waran3,"FP_INSEL_ROAM_TIERE_85");
		Wld_InsertNpc(waran3,"FP_INSEL_ROAM_TIERE_80");
		Wld_InsertNpc(waran3,"FP_INSEL_ROAM_TIERE_81");
		Wld_InsertNpc(waran3,"FP_ROAM_EMILIO_01");
		Wld_InsertNpc(Scavenger,"FP_INSEL_ROAM_TIERE_58");
		Wld_InsertNpc(Scavenger,"FP_INSEL_ROAM_TIERE_59");
		Wld_InsertNpc(Scavenger,"FP_INSEL_ROAM_TIERE_60");
		Wld_InsertNpc(gobbo_mage,"FP_INSEL_ROAM_TIERE_64");
		Wld_InsertNpc(gobbo_mage,"FP_INSEL_ROAM_TIERE_65");
		Wld_InsertNpc(wolf3,"FP_INSEL_ROAM_TIERE_76");
		Wld_InsertNpc(wolf3,"FP_INSEL_ROAM_TIERE_78");
		ENTERSECRETISLAND_KAPITEL6 = TRUE;
	};
};

func void b_enter_secretisland()
{
	B_InitNpcGlobals();
	if(Kapitel >= 1)
	{
		b_enter_secretisland_kapitel_1();
	};
	if(Kapitel >= 2)
	{
		b_enter_secretisland_kapitel_2();
	};
	if(Kapitel >= 3)
	{
		b_enter_secretisland_kapitel_3();
	};
	if(Kapitel >= 4)
	{
		b_enter_secretisland_kapitel_4();
	};
	if(Kapitel >= 5)
	{
		b_enter_secretisland_kapitel_5();
	};
	if(Kapitel >= 6)
	{
		b_enter_secretisland_kapitel_6();
	};
	CurrentLevel = SECRETISLAND_ZEN;
	B_InitNpcGlobals();
};

